#!/bin/bash

function shellout(){
 echo 
 echo "ERROR $? in $1 commande";
 echo
 exit 2;
}

VERSIONFFMPEG=0.11.1

export -f shellout

LSCMD=`whereis ls | awk '{print $1}'`
ARCH=`file "$LSCMD"`

if echo "$ARCH" | grep -q "x86_64"
then
	ARCH="x86_64"
else
	ARCH="i386"
fi

export SRC=/opt/local/src/
export PREFIX=/usr/local
export PATH=${PREFIX}/lib:${PREFIX}/bin:${PATH}
export LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig/:${PKG_CONFIG_PATH}

ldconfig

mkdir -p $SRC ${PREFIX}
